/* -----------------
* brief 
* 1. this is code gen by tools 
* 2. array like [a,b,c] after each field, define the ui html tag in view, 
		a for title, 
		b for show or not , (onlyread is trial feature)
		c for element html tag , currently support : check、radio、select、input、textarea、upload
* 3. XXX
*/
//使用方法：在工程root目录下，执行go generate ./modules/adminSaas/models
//go:generate legogen -type=AdminSaasMenu -kv=ModuleName=adminSaas,PrjName=saas_sys_base -dirconf=../../.. ./AdminSaasMenu.go
package adminSaas

import "github.com/mjiulee/lego"

func init() {
	lego.AddBeanToSynList(new(AdminSaasMenu))
}

/* table: "tb_admin_saas_menu"
 * -----------------
 */
type AdminSaasMenu struct {
	Id    int64  `xorm:"pk" json:",string"`                  // ["id","hide","hidden"]
	IfDel int `xorm:"default 0"` // ["deleted","hide","hidden"]
	Cdate string `xorm:"DateTime created"`    // ["create","show","datetime"]
	Udate string `xorm:"DateTime updated"`    // ["update","show","datetime"]
	// add your custom field here
	Pid     int64  `xorm:"default 0 " json:",string"`   // ["父菜单","show","select"]
	Name    string `xorm:"varchar(32)"`  // ["菜单名","show","input"]
	Url     string `xorm:"varchar(127)"` // ["链接","show","input"]
	MType   int    `xorm:"default 0"`    // ["类型","show","radio"]
	Show    int    `xorm"default 1"`     // ["显示","show","radio"]
	SortIdx int    `xorm:"default 0"`    // ["排序","show","input"]
	// other
	Check   bool   `xorm:"-"`

	//menu for saas
	MiniAppId int64  `xorm:"" json:",string"`           // ["mini app id","show","input"]
	MenuMode int `xorm:"" json:",string"`           // ["菜单模式","show","input"] //1表示微应用APP管理端菜单，2表示租户管理端菜单
}
